/**
* @description : 市场治理效能评分
* @descriptionDetail : 市场治理效能评分
* @copyright : 辽宁烟草
* @author : mc
* @create : 2022-12-05 15:33:20
*/
<template>
	<view>
		<!-- #ifdef H5-ONLY -->
		<theme-navbar :is-white="false" :title="navTitle" :custom-back="goBack" style="z-index: 99999">
			<!-- <view class="nav-right-icon">
        <u-icon name="scan" color="#FFF" @tap="scan"></u-icon>
      </view> -->
		</theme-navbar>
		<!-- #endif -->
		<view class="content u-page">
			<!-- 内容区 -->
			<!-- <view class="nolicence-search-lay" :style="{'top': isHideNav ? 0 : '44px'}">
				<view style="padding:10px 0;">
					<u-row gutter="16">
						<u-section
						:title="ALLData.orgName"
						:right="false"
						line-color="#2979ff"
						font-size="28"
					></u-section>
						<u-col span="6">
							<view style="margin-left:10px;">沈阳市</view>
						</u-col>
						<u-col span="6">
							<view style="text-align:right; padding-right:10px;">{{ALLData.num}}</view>
						</u-col>
					</u-row>
				</view>
			</view> -->
			<view v-if="ALLData == ''" class="no-data">
				~ 暂无数据 ~
			</view>
			<view v-else-if="ALLData != ''" class="main">
				<view class="label_title">
					<u-row gutter="10">
						<u-col span="7" style="line-height:20px;">
							<span>|</span>
							{{ ALLData.orgName }}
							<!-- <view style="margin-left:10px;">
								<u-section
									:title="ALLData.orgName"
									:right="false"
									line-color="#2979ff"
									font-size="28"
								></u-section>
							</view> -->
						</u-col>
						<u-col span="5">
							<view style="text-align:right; padding-right:10px;">第{{ALLData.num}}名 {{ ALLData.scoreAll }}(总分)</view>
						</u-col>
					</u-row>
				</view>
				<view class="scoreA">
					<view class="scoreB">
						<u-row gutter="16">
							<u-col span="6">
								<view>市场得分</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreScjc }}</view>
							</u-col>
						</u-row>
					</view>
					<view>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>双随机</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreScjcSsj }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>APCD</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreScjcApcd }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>临时添加检查计划</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreScjcLstj }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="8">
								<view>集贸市场等重点区域检查</view>
							</u-col>
							<u-col span="4">
								<view style="text-align:right;">{{ ALLData.scoreScjcZdqy }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" v-if="orgType == '2'" style="margin-bottom:5px;">
							<u-col span="6">
								<view>交通卡口值守</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreScjcJtkk }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" v-if="orgType == '2'" style="margin-bottom:5px;">
							<u-col span="6">
								<view>联合检查</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreScjcLhjc }}</view>
							</u-col>
						</u-row>
					</view>
				</view>
				<view class="scoreA">
					<view class="scoreB">
						<u-row gutter="16">
							<u-col span="6">
								<view>发现问题</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreFxwt }}</view>
							</u-col>
						</u-row>
					</view>
					<view>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>无证户</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreFxwtWjh }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>双随机</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreFxwtSsj }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>APCD重点检查</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreFxwtApcd }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>临时添加</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreFxwtLstj }}</view>
							</u-col>
						</u-row>
					</view>
				</view>
				<view class="scoreA">
					<view class="scoreB">
						<u-row gutter="16">
							<u-col span="6">
								<view>依法处理</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfcl }}</view>
							</u-col>
						</u-row>
					</view>
					<view>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>直接收回</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclZjSh }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>停业整顿</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclZjTyzd }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>取消资格</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclZjQxzg }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>降到B级</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclSgJb }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>降到C级</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclSgJc }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>降到D级</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclSgJd }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" v-if="orgType == '2'" style="margin-bottom:5px;">
							<u-col span="6">
								<view>五万元以上</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclAjJs5 }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>查获假私烟</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclAjJs }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>查获真烟</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclAjZy }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" v-if="orgType == '2'" style="margin-bottom:5px;">
							<u-col span="6">
								<view>运输环节</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclAjYs }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>无证户</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclLhWzh }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>移交公安</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclLhYjga }}</view>
							</u-col>
						</u-row>
					</view>
				</view>
				<view class="scoreA">
					<view class="scoreB">
						<u-row gutter="16">
							<u-col span="6">
								<view>监督检查</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreJdjc }}</view>
							</u-col>
						</u-row>
					</view>
					<view>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>视频不合格</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreJdjcSxzdSpbhg }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>检查问题</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreJdjcSgJcwt }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>无证户</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreJdjcSgWzh }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>法规评分</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreJdjcAjpcFgpc }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>12313举报</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreJdjcWfwg12313 }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>纪检监察</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreJdjcWfwgJjjc }}</view>
							</u-col>
						</u-row>
						<!-- <u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>无证户</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreJdjcQtWzh }}</view>
							</u-col>
						</u-row> -->
						<!-- <u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>查获假私烟</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclAjJs }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>查获真烟</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclAjZy }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>运输环节</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclAjYs }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>无证户</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclLhWzh }}</view>
							</u-col>
						</u-row>
						<u-row gutter="100" style="margin-bottom:5px;">
							<u-col span="6">
								<view>移交公安</view>
							</u-col>
							<u-col span="6">
								<view style="text-align:right;">{{ ALLData.scoreYfclLhYjga }}</view>
							</u-col>
						</u-row> -->
					</view>

				</view>
			</view>



		</view>
	</view>
</template>

<script>
	import meTable from '@/components/me-table.vue';
	import commonService from "@/service/score/score.service.js";
	import fabButton from '@/components/uni-fab.vue';
	export default {
		components: {
			meTable,
			fabButton,
		},
		data() {
			return {
				orgType:'1',
				ALLData: '',
				// loadData: [
				// 	{
				// 		a: '市场检查',
				// 		b: '10.1',
				// 		c: '123',
				// 		d: '456'
				// 	}
				// ]
				
			};
		},
		mounted() {
			this.loadData();
		},
		onLoad() {
			// document.addEventListener( "keydown", this.keypress );
		},
		onUnload() {
			console.log( 'onUnload' );
		},
		methods: {
			
			loadData( ) {
				let promise = {};
					commonService.postSearch(promise).then( res => {
						if ( res.success ) {
							if(JSON.stringify(res.bean) != '{}'){
								this.ALLData = res.bean
								this.orgType = res.bean.orgType
							}else{
								this.ALLData = ''
								this.orgType = '1'
							}
							
						} else {
							this.$modal.alert( res.msg );
							this.ALLData = ''
						}
					} )
					.catch( err => {
						this.ALLData = ''
						this.$modal.alert( "请求失败" );
					} );
			},
			
		},
	};
</script>

<style lang="scss" scoped>
	@import "@/style/common/rightMenu.scss";

	.nolicence-search-lay {
		background-color: #fff;
		position: fixed;
		// #ifndef H5-DINGDING
		top: 44px;
		// #endif
		// #ifdef H5-DINGDING
		top: 0px;
		// #endif
		z-index: 999;
		width: 100%;
		overflow: hidden;
	}
	.label_title{
		padding:10px 0 10px 5px;
		background:#fff;
		margin-bottom:10px;
		span{
			float:left;
			font-size:12px;
			font-weight:bold;
			color:#0070d2;
			margin-right:10px;
		} 
	}
	.main {
		background-color: $uni-bg-color-grey;
	}

	.dataTab {
		width: 730rpx;
		margin-left: 10rpx;
	}
	
	.scoreA{
		padding:5px 15px;
		background: #FFF;
		margin-bottom:10px;
	}
	
	.scoreB {
		padding: 5px 0 10px;
		margin-bottom: 10px;
		border-bottom:1px dashed #666;
	}
	.no-data{
		text-align: center;margin: 20px;
	}
	// .name_a {
	// 	color: blue;
	// }

	// .smoke_info_item {
	// 	float: left;
	// 	overflow: hidden;
	// 	margin: 15px 10px 0px;
	// 	background-color: #FFFFFF;
	// 	border-radius: 30rpx;
	// }

	// .smoke_info_item:nth-child(2) {
	// 	margin-top: 0;
	// }

	// .scoll_content {
	// 	background-color: #EFF3F9;
	// }
</style>